﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=1">
    <meta name="format-detection" content="telephone=no">
    <meta charset="UTF-8">
    <title>浮云带来的影响</title>

    <style>
        .div{
            border: 1px solid red; width: 100%;
            overflow: hidden;/*影响是当有浮云效果的时候，父级元素的高度没了，就算加上百分比的高度也没用。所以得加上overflow*/
        }
        .child{
            border: 1px solid blue; width: 100px; height: 100px; float: left;
        }
    </style>
</head>
<body>
    <div class="div">
        <div class="child">div1</div>
        <div class="child">div2</div>
        <div class="child">div3</div>
    </div>
</body>
</html>